@model ShivamEMR.Model.Domain.CompanyDomain.Company

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Company</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">ShortName</div>
    <div class="display-field">@Model.ShortName</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group).ToString()</div>

    <div class="display-label">BranchGroups</div>
    <div class="display-field">@(Model.BranchGroups == null ? "None" : Model.BranchGroups.Count.ToString())</div>

    <div class="display-label">Branches</div>
    <div class="display-field">@(Model.Branches == null ? "None" : Model.Branches.Count.ToString())</div>

    <div class="display-label">Logo</div>
    <div class="display-field">@(Model.Logo == null ? "None" : Model.Logo.Title)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


